package com.kellyfeng.frame4j.util;
import java.util.*;
import org.apache.commons.collections4.*;
/**
 * @author Administrator
 *集合工具集
 */
public final class CollectionUtil {
	/**
	 * @param collection
	 * @return 
	 * 判断Collection是否为空
	 */
	public static boolean isEmpty(Collection<?> collection){
		return CollectionUtils.isEmpty(collection);
	}
	/**
	 * @param collection
	 * @return 
	 * 判断Collection是否非空
	 */
	public static boolean isNotEmpty(Collection<?> collection){
		return !isEmpty(collection);
	}
	/**
	 * @param map
	 * @return 
	 * 判断Map是否为空
	 */
	public static boolean isEmpty(Map<?, ?> map){
		return MapUtils.isEmpty(map);
	}
	/**
	 * @param map
	 * @return 
	 * 判断Map是否非空
	 */
	public static boolean isNotEmpty(Map<?, ?> map){
		return !isEmpty(map);
	}
}
